import request from '@/utils/request'

// 查询推荐注册列表
export function listConvenientpeople(query) {
  return request({
    url: '/convenientpeople/convenientpeople/list',
    method: 'get',
    params: query
  })
}

// 查询推荐注册详细
export function getConvenientpeople(id) {
  return request({
    url: '/convenientpeople/convenientpeople/' + id,
    method: 'get'
  })
}

// 新增推荐注册
export function addConvenientpeople(data) {
  return request({
    url: '/convenientpeople/convenientpeople',
    method: 'post',
    data: data
  })
}

// 修改推荐注册
export function updateConvenientpeople(data) {
  return request({
    url: '/convenientpeople/convenientpeople',
    method: 'put',
    data: data
  })
}

// 删除推荐注册
export function delConvenientpeople(id) {
  return request({
    url: '/convenientpeople/convenientpeople/' + id,
    method: 'delete'
  })
}

// 导出推荐注册
export function exportConvenientpeople(query) {
  return request({
    url: '/convenientpeople/convenientpeople/export',
    method: 'get',
    params: query
  })
}